package ${model_package_dao};

import ${name};<#--当前model所在类-->
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

/**
* Created by lewis on ${.now}.
*/
@Repository
public interface  ${model_name}Dao extends JpaRepository<${model_name}, ${model_key_type}>,JpaSpecificationExecutor<${model_name}> {
       
        
     /**
     *通过主键删除
     */   
     @Query("delete from ${model_name} u where u.${model_key} = :${model_key}")
	 @Modifying
	 public void deleteUser(@Param("${model_key}")String ${model_key});
}
